import 'package:flutter/material.dart';
import 'package:wanxiang_app/utils/constant.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class SellTipDialog extends Dialog {
  ClickCallBack callBack;

  SellTipDialog({required this.callBack} );

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Container(
          alignment: Alignment.center,
          child:  Container(
              height: 401.h,
              width: 328.w,
              alignment: Alignment.bottomCenter,
              child: Stack(
                children: [
                  Image.asset(Constant.IMG_BASE+'sell_tab2.png',width: 328.w,height: 507.h,),
                  Container(
                      width: 328.w,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Container(
                          margin: EdgeInsets.only(top: 282.h),
                          width: 292.w,
                          height: 42.h,
                          alignment: Alignment.center,
                          decoration: BoxDecoration(
                              color: Color(0xFF007BE5),
                              borderRadius: BorderRadius.circular(6.r)
                          ),
                          child: Text('立即回收',style: TextStyle(
                              color: Colors.white,
                              fontSize: 13.sp
                          ),),
                        )
                      ],
                    )
                  ),
                  InkWell(
                    onTap: (){

                    },
                    child:  Container(
                      margin: EdgeInsets.only(top: 20.h,left: 170.w),
                      height: 40.h,
                      width: 160.w,
                      color: Colors.red,
                    )
                  )

                ],
              )
          )
        )

    );
  }
}